package com.xls.resource.dialog;

import android.app.Activity;
import android.view.View;
import android.widget.TextView;

import com.lzz.bottomencapsulation.popupwindow.CenterBaseDialog;
import com.xls.resource.R;

/***
 @package ${package}
 @filename ${filename}
 */
public class HintPW3 extends CenterBaseDialog implements View.OnClickListener {
    TextView saTvBottom;
    TextView saTvTop;
    TextView saTvContent;
    String content;
    public HintPW3(Activity context, String content) {
        super(context);
        this.content=content;
    }

    @Override
    protected int getView() {
        return R.layout.popu_hint3;
    }

    @Override
    protected void initView() {
        saTvBottom=findViewById(R.id.h3_tv_bottom);
        saTvTop=findViewById(R.id.h3_tv_top);
        saTvContent=findViewById(R.id.h3_tv_content);
        saTvContent.setText(content);
        saTvBottom.setOnClickListener(this);
        saTvTop.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();
        if (id == R.id.h3_tv_bottom) {
        } else if (id == R.id.h3_tv_top) {
            onClickListener.onClick(view);
        }
        dismiss();
    }
}
